home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2005 March / Macworld CD March 2005 - Marathon Trilogy.iso / Shareware World / User Interface / RocketLauncher.sit / RocketLauncher / RocketLauncher.CVS / AppTableDS.m,v < prev    next >
Encoding:
Text File  |  2005-01-09  |  1.0 KB  |  73 lines

  1. head     1.1;
  2. branch   1.1.1;
  3. access   ;
  4. symbols  start:1.1.1.1 oleg:1.1.1;
  5. locks    ; strict;
  6. comment  @// @;
  7.  
  8.  
  9. 1.1
  10. date     2005.01.09.18.45.06;  author oleg;  state Exp;
  11. branches 1.1.1.1;
  12. next     ;
  13.  
  14. 1.1.1.1
  15. date     2005.01.09.18.45.06;  author oleg;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24.  
  25. 1.1
  26. log
  27. @Initial revision
  28. @
  29. text
  30. @//
  31. //  AppTableDS.m
  32. //  RocketLauncher
  33. //
  34. //  Created by Oleg Kibirev on 1/2/05.
  35. //  Copyright 2005 My Stuff. All rights reserved.
  36. //
  37.  
  38. #import "AppTableDS.h"
  39.  
  40.  
  41. @@implementation AppTableDS
  42. -(void)setAppList: (NSArray *)al {
  43.     [appList release];
  44.     appList = [al retain];
  45. }
  46.  
  47. -(void)dealloc {
  48.     [appList release];
  49.     [super dealloc];
  50. }
  51.  
  52. -(int)numberOfRowsInTableView: (NSTableView *)table {
  53.     return [appList count];
  54. }
  55.  
  56. - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex {
  57.     AppInfo *ai = [appList objectAtIndex:rowIndex];
  58.     if ([[aTableColumn identifier] isEqual:@@"i"])
  59.         return [ai icon];
  60.     else
  61.         return [ai name];
  62. }
  63. @@end
  64. @
  65.  
  66.  
  67. 1.1.1.1
  68. log
  69. @RocketLauncher
  70. @
  71. text
  72. @@
  73.